import router from './router';
import store from './store';

router.beforeEach(async(to,from,next)=> {
    const {meta} =to;
    store.dispatch('app/toggleHeader',meta);
    console.log(meta)

    next();
})